package cn.edu.lingnan.tourism.service;

import cn.edu.lingnan.tourism.exeption.TourismException;
import cn.edu.lingnan.tourism.pojo.Favorite;
import cn.edu.lingnan.tourism.pojo.Route;

import java.util.List;
import java.util.Map;

/**
 * @author liyinglai
 */

public interface FavoriteService {
    public void addFavorite(Favorite favorite)throws TourismException;

    public void removeFavorite(Favorite favorite)throws TourismException;

    public List<Route> getUserFavoritesRoute(Integer userId);
    public Favorite getFavoriteRouteByUidAndRid(Favorite favorite);
    public List<Route> getFavoriteRouteHost();


}